module.exports = {
    roots: ['<rootDir>'],
    clearMocks: true,
    coverageDirectory: 'coverage',
    coverageProvider: 'v8',
    moduleFileExtensions: ['ts', "js"],
    testMatch: ['<rootDir>/__tests__/**/*.(spec|test).ts'],
    moduleNameMapper: {
        '^@/(.*)$': '<rootDir>/src/$1'
    },
    transformIgnorePatterns: [
        '<rootDir>/node_modules/'
    ],
    extensionsToTreatAsEsm: ['.ts'],
    transform: {
        '^.+\\.ts$': [
            'ts-jest',
            {
                useESM: true
            },
        ],
    },
}
